﻿using AutoMapper;
using HamcoWcs.Contract.ContractCommon;
using HamcoWcs.Contract.ContractMes;
using HamcoWcs.DAL;
using HamcoWcs.Models.Common;
using HamcoWcs.Models.Common.Enums;
using HamcoWcs.Models.Devices;
using HamcoWcs.Models.TibcoMessage;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HamcoWcs.Service.Pcon.PconPlcDbMsgParsers
{
    /// <summary>
    /// RGV禁用失败
    /// </summary>
    public class PconMsgParse_DisabledFailure : PconMsgParseBase
    {
        public override EnumPconPlcRequest RequestType => EnumPconPlcRequest.DisabledFailure;
        private readonly ILoggerService _logger;
        public PconMsgParse_DisabledFailure(ILoggerService logger,
             IMapper mapper, WcsDbContext wcsDbContext,
            IMesCommunicateService mesCommunicateService)
            : base(mesCommunicateService, wcsDbContext, mapper)
        {
            _logger = logger;
        }


        

        public override void Deal(PconDto pconDto, PconPlc pconPlc)
        {
            pconDto.DisableDesc = "设宕失败";


        }
    }
}
